import { createStore } from 'vuex'

export default createStore({
  state: {
    dialogForms: "",
    userid: "",
    ruleForm: {},
    navBool: true,
    drawer: false
  },
  getters: {
  },
  mutations: {
    changeform(state, bool) {
      state.dialogForms = bool
    },
    changedata(state, id) {
      state.userid = id
    },
    changerules(state, data) {
      state.ruleForm = data
    },
    SET_NAVBOOL(state: any) {
      state.navBool = !state.navBool
    },
    CHANGE_DRAWER(state,bool) {
      state.drawer = bool
    }
  },
  actions: {
  },
  modules: {
  }
})
